package com.library.librarybackend.handler.exception;

import lombok.Getter;

/**
 * @author 平
 * @description 业务异常
 * @since 2025-09-19 00:19
 */
@Getter
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private final String message;

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
